home *** CD-ROM | disk | FTP | other *** search
- Path: dolphin.upenn.edu!perkel
- From: perkel@dolphin.upenn.edu (Jeffrey M. Perkel)
- Newsgroups: comp.lang.c,comp.lang.c++
- Subject: [Q]: Date Algorithm
- Date: 4 Mar 1996 19:33:27 GMT
- Organization: University of Pennsylvania
- Message-ID: <4hfgi7$l7v@netnews.upenn.edu>
- NNTP-Posting-Host: dolphin.upenn.edu
- X-Newsreader: TIN [version 1.2 PL2-upenn1.3]
-
- Hi, all,
-
- I have a question. I'm looking for an algorithm to determine the day of
- the week given a specific date. I'm sure that these are relatively well
- known, but I couldn't find one in any of my books. Could somebody please
- e-mail me a simple algorithm to perform this calculation? Thanks.
-
- Jeff
- P.S. Code would be prefered, of course, but just a description of how
- it's done would also be greatly appreciated. Thanks again!
-
-
- --
- Jeffrey Perkel perkel@dolphin.upenn.edu
- "On silver necklaces they strung/the flowering stars; on crowns they
- hung/the dragon-fire;in twisted wire/they meshed the light of moon and sun."
- - J.R.R. Tolkien, _The Hobbit_
-